﻿package com.itita.ww2.model.army;

public class UnitData
{
	public String[] weightSchemes; //权重方案
	public int schemeType = 1; //方案类型
	public String UID; //战斗单位代号
	public float sightRange = 20; //视线
	public float blindSpots; //盲点
	public float attackRange = 15; //攻击范围
	public float damage = 20; //攻击伤害
	public float fireCounter = 0.4f; //开火计时器
	public float rateOfFire = 1; //攻击速度
	public float turretSpeed = 100; //转动速度
	public float armour = 12; //装甲
	public float health = 100; //血量
	public float maxHealth = 100; //最大
	public float alertTime = 0; //实时警惕时间
	public float alertTimeMax = 5.0f; //警惕时间
	public float MovementSpeed = 2; //移动速度
	public int level = 1; //单位等级
	public int productTime = 120; // 单位升级时间

	public final UnitData clone()
	{
		UnitData data = new UnitData();
		data.weightSchemes = weightSchemes; //权重方案
		data.schemeType = schemeType; //方案类型
		data.UID = UID; //战斗单位代号
		data.sightRange = sightRange; //视线
		data.blindSpots = blindSpots; //盲点
		data.attackRange = attackRange; //攻击范围
		data.damage = damage; //攻击伤害
		data.fireCounter = fireCounter; //开火计时器
		data.rateOfFire = rateOfFire; //攻击速度
		data.turretSpeed = turretSpeed; //转动速度
		data.armour = armour; //装甲
		data.health = health; //血量
		data.maxHealth = maxHealth; //最大
		data.alertTime = alertTime; //实时警惕时间
		data.alertTimeMax = alertTimeMax; //警惕时间
		data.MovementSpeed = MovementSpeed; //移动速度
		// data.level = level;//单位等级
		data.productTime = productTime;// 单位升级时间
		return data;
	}
}